from decorator import decorator
def condition(confunc,error):
    def wrap(func,*args,**kwargs):
        if confunc(*args,**kwargs):
            return func(*args,**kwargs)
        else :
            return error(*args,**kwargs)
    return decorator(wrap)

def _or(*funcs):
    def _(*args,**kwargs):
        return any(map(lambda x:x(*args,**kwargs),funcs))
    return _
